package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.demos.entity.param.MemberCardQueryParam;
import com.springboot.cloud.demos.entity.po.MemberCard;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(name = "ribbon-consumer", fallback = MemberCardServiceFallback.class)
public interface MemberCardService {

    @RequestMapping(value = "/conditions", method = RequestMethod.POST)
    Result conditions(MemberCardQueryParam params);

    @RequestMapping(value = "/memberCard/{memberCardId}",method = RequestMethod.GET)
    Result<MemberCard> memberCard(@PathVariable(value = "memberCardId") String memberCardId);
}
